<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnTaskNumInOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('order')
            ->addColumn('task_num', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '任务数量'])
            ->save();
    }

    public function down()
    {
        $this->table('order')->removeColumn('task_num')->save();
    }
}
